<html>
  <head>
    <title>OpenSocial Dashboard site embedding script</title>
	</head>
	<body>
    <h1>OpenSocial Dashboard Site Embedding Script</h1>
    <p>
    Copy and paste the following script tag to your site page, in order to create dashboard call button.
    </p>
    <textarea id="code" rows="10" cols="110" onfocus="this.select()" readonly></textarea>
    <script type="text/javascript">
var baseUrl = location.href.split('/').slice(0, -1).join('/');
var embedScriptUrl = baseUrl + '/js/socialdashboard-include.js';
var btnImageUrl = baseUrl + '/images/button/bootstrap.gif'
document.getElementById('code').value = [
'<style type="text/css">',
'.osd-btn-bootstrap {',
' background : transparent url('+btnImageUrl+') no-repeat scroll 0 0;',
' cursor : pointer;',
' z-index : 100000;',
' top : 100px;',
' left : 0px;',
' height : 80px;',
' width : 15px;',
'}',
'</style>',
'<'+'script type="text/javascript"\n        src="'+embedScriptUrl+'">\n</'+'script>'
].join('\n');
    </script>
	</body>
</html>

